//
//  URLConnection.h
//  e-nurse
//
//  Created by  on 4/11/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface URLConnection : NSObject <NSURLConnectionDataDelegate, NSURLConnectionDelegate>

+ (NSString*)createParameterString:(NSDictionary*)parameters;
+ (NSString*)createServerUrl:(NSString*)address path:(NSString*)path;

+ (NSString*)postRequestSync:(NSString*)url parameters:(NSString*)params headers:(NSDictionary*)headers body:(NSData*)body;
+ (NSString*)getRequestSync:(NSString*)url headers:(NSDictionary*)headers;

- (void)downloadFile:(NSString*)url filePath:(NSString*)filePath headers:(NSDictionary*)headers;

+(double)networkTimeout;

@end
